← all projects

Do eet

Do eet
gist

WordPress Migration into Network

The following example migrates archies.amasan.co.uk into the amasan.co.uk network.

Requirements

site management scripts

Directions

Backup the original site:

tar czf archies.amasan.co.uk.tgz archies.amasan.co.uk/

Remove unused plugins and themes, then copy them into the network:

cp plugins/ /var/www/amasan.co.uk/html/wp-content -R
cp themes/ /var/www/amasan.co.uk/html/wp-content -R

Install https://wordpress.org/plugins/widget-settings-importexport/ into network. Export the widgets from the original site.

Nginx: Add domain to server_name.

Remove the old site:

cd /etc/nginx/sites-enabled
site-disable.sh archies.amasan.co.uk

Create a new site, remove the example post, page and comment. Import the site. Import widgets Setup domain mapping. Setup all the bloody plugins.

Troubleshooting